import http from "@/utils/request"
import type { CountParams, CountResult } from "./type";

/**
 * 获取报修单数量
 * @param params 
 * @returns 
 */
export const getRepairsCount=(params:CountParams)=>{

  return  http.get<CountResult[],CountParams>("repairs/getCountsList",params);

}

/**
 * 获取投诉单数量
 * @param params 
 * @returns 
 */
export const getQuestionsCount=(params:CountParams)=>{

    return  http.get<CountResult[],CountParams>("questions/getCountsList",params);

}

